package org.csmzxy.class2333.filedemo;

import java.io.FileOutputStream;
import java.io.OutputStream;

public class Example09 {
    public static void main(String[] args) throws Exception {
        OutputStream out = new
                FileOutputStream("src\\file\\test02.txt");
        String str = "黑马程序员";
        byte[] b = str.getBytes();
        for(int i = 0; i < b.length; i ++) {
            out.write(b[i]);
        }
        out.close();
    }
}
